{% extends "base.html" %}
{% block title %}报到成功{% endblock %}
{% block head %}
    {{ super() }}
    <style>
        h2 {
            align-items: center;
            justify-content: center;
            padding: 15px;
        }

        img {
            margin-right: 5px;
        }
    </style>
{% endblock %}
{% block body %}
    <div class="contianer info-page" style="display: flex;flex-direction: column;">
        <div class="weui-well text-center">
            <h2 class="weui-flex"><img src="/static/images/success.png">
                报到成功！
            </h2>
            <div style="padding: 10px;">请准时到医院后手机或自助机报到</div>
        </div>
        {% if examInfo %}
            <div class="weui-well">
                {% set exams = examInfo["MedicalRequestInfo"]["RequestInfo"] %}
                {% if exams|isDict %}
                    {% set exams=exams|parseArray %}
                {% endif %}
                <div class="weui-flex text-disabled">
                    <div class="weui-flex__item">检查项目</div>
                    <div style="min-width: 3em;text-align: right">排队号码</div>
                </div>
                {% for exam in exams %}
                    <div class="font12">
                        <div class="weui-flex">
                            <div class="weui-flex__item">
                                {% if exam["ExamList"]["Exam"]|isList %}
                                    {% for ex in exam["ExamList"]["Exam"] %}
                                        {% if loop.index0==0 %}
                                            {{ ex["ExamProject"] }}
                                        {% else %}
                                            {{ ','+ex["ExamProject"] }}
                                        {% endif %}
                                    {% endfor %}
                                {% else %}
                                    {{ exam["ExamList"]["Exam"]["ExamProject"] }}
                                {% endif %}
                            </div>
                            <div style="min-width: 3em;text-align: right">{{ exam["ReservationInfo"]["QueueNum"] }}</div>
                        </div>
                    </div>
                {% endfor %}
            </div>
        {% endif %}
    </div>
{% endblock %}
{% block script %}
    {{ super() }}
{% endblock %}